home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap02 / GdiDemo3 / GdiDemo3.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  877 b   |  46 lines

  1. //***********************************************************************
  2. //
  3. //  GdiDemo3.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CMyApp : public CWinApp
  8. {
  9. public:
  10.     virtual BOOL InitInstance ();
  11. };
  12.  
  13. class CMyView : public CScrollView
  14. {
  15. private:
  16.     int m_cxChar;
  17.     int m_cyChar;
  18.  
  19.     void ShowPenStyles (CDC*, int, int);
  20.     void ShowPenWidths (CDC*, int, int);
  21.     void ShowBrushStyles (CDC*, int, int);
  22.  
  23. protected:
  24.     virtual void OnDraw (CDC*);
  25.  
  26.     afx_msg int OnCreate (LPCREATESTRUCT);
  27.     afx_msg void OnSize (UINT, int, int);
  28.  
  29.     DECLARE_MESSAGE_MAP ()
  30. };
  31.  
  32. class CMainWindow : public CFrameWnd
  33. {
  34. public:
  35.     CMainWindow ();
  36.  
  37. protected:
  38.     afx_msg int OnCreate (LPCREATESTRUCT);
  39.     DECLARE_MESSAGE_MAP ()
  40. };
  41.  
  42. struct STYLES {
  43.     int nStyle;
  44.     char szStyleName[16];
  45. };
  46.